package com.tj.collection.controller.chatter.response;

import com.fqgj.common.api.ResponseData;
import com.tj.collection.db.domain.Admin;
import com.tj.collection.db.domain.ChatterGoalDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import java.util.List;

/**
 * @author linqu
 */
@Data
@Builder
@ApiModel(value = "getChatterGoalResp", description = "chatter指标")
public class GetChatterConfigResponse implements ResponseData {

    @ApiModelProperty("chatter code")
    private String chatterCode;
    @ApiModelProperty("每小时会话在线用户数")
    private Integer onlineUserNum;
    @ApiModelProperty("每日新建联数")
    private Integer newRelationNum;
    @ApiModelProperty("每日破冰会话数")
    private Integer breakIceChatNum;
    @ApiModelProperty("每日合计卖出PPV")
    private Integer totalPPVNum;
//    @ApiModelProperty("状态：0-waiting 1-pass 3-reject")
//    private Integer approvalStatus;

    public static GetChatterConfigResponse toRsp(ChatterGoalDto dto) {
        return GetChatterConfigResponse.builder().chatterCode(dto.getChatterCode()).breakIceChatNum(dto.getBreakIceChatNum()).onlineUserNum(dto.getOnlineUserNum()).newRelationNum(dto.getNewRelationNum()).totalPPVNum(dto.getTotalPPVNum()).build();
    }

}
